package manong.service;
import manong.constant.ServerResponse;
import manong.beans.CourseTable;

import com.github.pagehelper.PageInfo;


import java.util.List;

public interface ICourseTableService {
    ServerResponse<String> add(CourseTable courseTable);

    ServerResponse<String> del(Integer id);

    ServerResponse<String> update(CourseTable courseTable);

    ServerResponse<String> arr();
    ServerResponse<CourseTable> find(Integer id);

    ServerResponse<PageInfo<CourseTable>> findAll(Integer pageNum, Integer pageSize);
//获取所有

    ServerResponse<List<CourseTable>> findBy(String className, String teacherName,Integer week);
//查课表

    ServerResponse<PageInfo<CourseTable>> findAllBy(Integer pageNum, Integer pageSize, Integer week, String courseName, String className, String teacherName, String roomName);
//多个条件进行分页查询课程表

    ServerResponse<String> adjust(Integer courseTableId, Integer classroomId, Integer week, String day, Integer number, String classroomName);

    String findByClassName(String sno);
}
